<?php
	defined("C5_EXECUTE") or die(_("Access Denied."));
?>	
<script type="text/javascript">
var PImages = {
<?php
	$p = array();
	foreach($result as $key => $info) {
		$images = $info["images"];
		foreach($images as $key => $image) {
			$p[] = "\"".$image["name"]."\":\"".$image["url"]."\"";
		}
	};
	echo join(",",$p);
?>
};
</script>
